<!-- Right side column. Contains the navbar and content of the page -->
<aside class="right-side">
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <h1>
            <?php echo $this->lang->line('menu_santri'); ?>
            <small><?php echo $this->lang->line('webname'); ?></small>
        </h1>
    </section>

    <!-- Main content -->
    <section class="content">
        <div class="row">
            <div class="col-xs-12">
                <div class="box box-info">
                    <div class="box-header">
                        <div class="box-tools">
                            <?php echo form_open('musaid_menus/santri/'); ?>
                            <div class="input-group">
                                <input name="in_cari" type="text" class="form-control input-sm pull-right" placeholder="<?php echo $this->lang->line('cari'); ?>" value="<?php echo $this->session->userdata('cari') ?>"/>
                                <div class="input-group-btn">
                                    <button class="btn btn-sm btn-default"><i class="fa fa-search"></i></button>
                                </div>
                            </div>
                            </form>
                        </div>
                    </div><!-- /.box-header -->
                    <div class="box-body">
                        <table class="table table-bordered">
                            <tr>
                                <th><?php echo $this->lang->line('no'); ?></th>
                                <th><?php echo $this->lang->line('namas'); ?></th>
                                <th><?php echo $this->lang->line('kelamin'); ?></th>
                                <th><?php echo $this->lang->line('sekolah'); ?></th>
                                <th><?php echo $this->lang->line('tanggal'); ?></th>
                                <th><?php echo $this->lang->line('status'); ?></th>
                                <th><?php echo $this->lang->line('alamat'); ?></th>
                            </tr>
                            <?php $no = 1; ?>
                            <?php foreach ($santris->result() as $row) { ?>
                                <tr>
                                    <td><?php echo $no_page + $no; ?></td>
                                    <td><?php echo $row->santri_nama; ?></td>
                                    <td>
                                        <?php if ($row->santri_kelamin == '1') { ?>
                                            <i class="fa fa-male"></i>
                                        <?php } else { ?>
                                            <i class="fa fa-female"></i>
                                        <?php } ?>
                                    </td>
                                    <td><?php echo $this->auth->_sekolah_santri($row->santri_sekolah); ?></td>
                                    <td><?php echo date('d/m/Y', strtotime($row->santri_tanggal)); ?></td>
                                    <td><?php echo $this->auth->_status_santri($row->santri_status); ?></td>
                                    <td><?php echo $row->santri_alamat; ?></td>
                                </tr>
                                <?php $no++; ?>
                            <?php } ?>
                        </table>
                    </div><!-- /.box-body -->
                    <div class="box-footer clearfix">
                        <div class="col-sm-4">
                            <?php
                            if ($total > 0) {
                                echo $this->lang->line('total') . $total;
                            } else {
                                ?>
                                <span class="error"><?php echo $this->lang->line('d_tidak_ada'); ?></span><?php } ?>
                        </div>
                        <ul class="pagination pagination-sm no-margin pull-right">
                            <?php echo $paging; ?>
                        </ul>
                    </div>
                </div><!-- /.box -->
            </div><!-- /.col -->
        </div><!-- /.row -->
    </section><!-- /.content -->
</aside><!-- /.right-side -->
